package com.qn.example.mapper;

import com.qn.example.pojo.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 21276
 * @version 1.0
 * @date 2023/5/24 14:36
 */
public interface OrderMapper {
    @Insert("insert into orders values(#{id},#{number},#{status},#{userId},#{addressBookId},#{orderTime},#{checkoutTime}," +
            "#{payMethod},#{amount},#{remark},#{phone},#{address},#{userName},#{consignee})")
    void save(Orders orders);


    @Select("select * from orders")
    List<Orders> findByPage(Object o);
}
